package com.zyy.seckill.vo;

import com.zyy.seckill.validator.IsMobile;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author: zyy
 * @DateTime: 2021/10/3 17:59
 */
@Data
@AllArgsConstructor
public class LoginVo {
    @NotNull
    @IsMobile // 自定义手机验证注解
    private String mobile;


    @NotNull
    @Length(min = 6)
    private String password;
}
